package fr.ensai.testXsl;

import java.io.File;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;

public class Transform {

	public static void main(String[] args) throws TransformerException {

		 TransformerFactory tFactory = TransformerFactory.newInstance();
		 Transformer transformer = tFactory.newTransformer(new StreamSource(
				 "D:/workspace/xsl-test/src/main/resources/test.xsl"));

		 transformer.transform(
				 new StreamSource(
						"D:/workspace/xsl-test/src/main/resources/test.xml"), 
						 new StreamResult(
						"D:/workspace/xsl-test/src/main/resources/output.html"));
		
	}

}
